import request from '@/utils/request'
// 客户


//获取会员列表
export function getUsersBuyList(params) {
    return request({
        url: '/member/buy/list',
        method: 'get',
        params
    })
}
export function detailBuyUsers(uid) {
    return request({
        url: '/member/buy/detail',
        method: 'get',
        params:{"id":uid}
    })
}

export function createUsers(data) {
    return request({
        url: '/member/intake/create',
        method: 'post',
        data
    })
}

export function updateUsers(data) {
    return request({
        url: '/member/intake/update',
        method: 'put',
        data
    })
}

//更改身份
export function modifyBuyRole(data) {
    return request({
        url: '/member/buy/role',
        method: 'post',
        data
    })
}
export function getUsersWater(params) {
    return request({
        url: '/member/buy/getUsersWaterLists',
        method: 'get',
        params
    })
}
export function updateUsersBuyWater(data) {
    return request({
        url: '/member/buy/updateUsersWater',
        method: 'put',
        data
    })
}


export function getUsersBuySelectlists(params) {
    return request({
        url: '/member/buy/getSelectlists',
        method: 'get',
        params
    })
}


//获取会员列表
export function updateUsersWater(data) {
    return request({
        url: '/water/member/updateUsersWater',
        method: 'put',
        data
    })
}


//更改身份
export function modifyUsersRole(data) {
    return request({
        url: '/member/buy/role',
        method: 'post',
        data
    })
}
